package com.key.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author wei
 */
@ApiModel("资产entity")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Assets {

  private Long assetsId;                      //资产主键ID
  private Integer assetsState;                //资产状态(1:闲置，2:领用，3:借用，4:调拨中，5:损坏，6:报修，7:维修中，8:报废，9:已清理(不显示))
  private String assetsPhoto;                 //资产照片
  private String assetsCode;                  //资产编码
  private String assetsName;                  //资产名称
  private String assetsRFID;                  //资产的RFID
  private String assetsSerialNumber;          //资产序列号(SN号)
  private BigDecimal assetsMoney;             //资产金额
  private Integer assetsEmployeeId;              //资产使用人id
  private String assetsStorageLocation;       //资产存放地
  private Integer assetsManagerId;            //资产管理员(员工)id
  private Long assetsAdminId;              //资产所属公司id
  @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
  private Timestamp assetsPurchaseDate;       //资产购入日期
  private Integer assetsServiceLife;           //资产使用期限
  private String assetsSource;                //资产来源
  private Integer assetsCreaterId;            //资产创建人id
  @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
  private Timestamp assetsCreateTime;         //资产创建日期
  private String assetsReceiptNo;             //资产收货单号
  private String assetsSignatureStatus;       //资产签字状态
  private String assetsRemarks;               //资产备注
  private String assetsEnclosure;             //资产附件
  private Long assetsRegionId;             //资产区域
  private Long assetsModelId;                 //资产型号

  //供应商
  private String supplier;
  //联系人
  private String contacts;
  //联系方式
  private String contactInfo;
  //负责人
  private String personInCharge;
  //维保到期时间
  @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
  private Timestamp expirationTime;
  //维保说明
  private String explain;

}
